import 'package:flutter/material.dart';

import 'package:video_player_plus/video_player_plus.dart';
import 'package:video_player/video_player.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }


  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: <Widget>[
            Container(
              padding: EdgeInsets.only(top: 20,bottom: 20),
              child: VideoPlayerPlus(
                 VideoPlayerController.network("http://static.fanghnet.com/uploads/szxTest/uploads/video/2020/09/de5e206f904d498aa47f84e980adc759.jpg.mp4"),
              ),
            )
          ],
        ),
      ),
    );
  }
}
